#ifndef _LOGGER_H_
#define _LOGGER_H_

#include <iostream>
#include <fstream>
#include <map>


class Logger
{
  public:
    Logger();
    virtual ~Logger();
    // Open a specified file.
    void open(std::string p_file_name);
    // Close all the open files.
    void close();
    // Obtain the specified log file.
    std::ofstream &log(std::string p_file_name);
    
    
  private:
    std::map<std::string, std::ofstream *> m_files;
};

#endif /* _LOGGER_H_ */
